﻿
@using App.Application.User.Dtos
@using App.Framwork
@using App.Hosting.Extensions

@{ ViewBag.Title = "后台管理系统";
    var user = Storage.Current.HttpContext.GetAuthUser() ?? new AuthUser(); }
@section css{
    <link href="~/css/index.css" rel="stylesheet" />
}
<div class="layui-layout layui-layout-admin">
    <!-- 顶部 -->
    <div class="layui-header header">
        <div class="layui-main mag0">
            <a href="#" class="logo">通用管理系统</a>
            <!-- 显示/隐藏菜单 -->
            <a href="javascript:;" class="layui-icon hideMenu layui-icon-shrink-right"></a>
            <!-- 顶级菜单 -->
            <ul class="layui-nav mobileTopLevelMenus" mobile>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="seraph icon-caidan"></i><cite>通用管理系统</cite></a>
                    <dl class="layui-nav-child" id="mobileMenu"></dl>
                </li>
            </ul>
            <ul id="pcMenu" class="layui-nav topLevelMenus" pc></ul>
            <!-- 顶部右侧菜单 -->
            <ul class="layui-nav top_menu">
                <li class="layui-nav-item" pc>
                    <a href="javascript:;" class="clearCache"><i class="layui-icon" data-icon="&#xe640;">&#xe640;</i><cite>清除缓存</cite><span class="layui-badge-dot"></span></a>
                </li>
                <li class="layui-nav-item lockcms">
                    <a href="javascript:;"><i class="fa fa-lock"></i><cite>锁屏</cite></a>
                </li>
                <li class="layui-nav-item" id="userInfo">
                    <a href="javascript:;"><img src="@user.HeadIcon" class="layui-nav-img userAvatar" width="35" height="35"><cite>@user.RealName</cite></a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-url="/Main/Home/Info"><i class="fa fa-address-card-o" data-icon="fa fa-address-card-o"></i><cite>个人资料</cite></a></dd>
                        <dd><a href="javascript:;" data-url="/Main/Home/Password"><i class="fa fa-pencil-square-o" data-icon="fa fa-pencil-square-o"></i><cite>修改密码</cite></a></dd>
                        @*<dd><a href="javascript:;" class="showNotice"><i class="fa fa-volume-up"></i><cite>系统公告</cite><span class="layui-badge-dot"></span></a></dd>
                            <dd pc><a href="javascript:;" class="functionSetting"><i class="fa fa-cog"></i><cite>功能设定</cite><span class="layui-badge-dot"></span></a></dd>*@
                        <dd pc><a href="javascript:;" class="changeSkin"><i class="layui-icon layui-icon-theme"></i><cite>更换皮肤</cite></a></dd>
                        <dd><a href="javascript:;" id="signOut"><i class="fa fa-power-off" style="color:orangered"></i><cite>安全退出</cite></a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <!-- 左侧导航 -->
    <div class="layui-side layui-bg-black">
        <div class="user-photo">
            <a class="img" title="我的头像"><img src="@user.HeadIcon"></a>
            <p>你好！<span class="userName">@user.RealName</span>, 欢迎登录</p>
        </div>
        <!-- 搜索 -->
        @*<div class="layui-form component">
                <select name="search" id="search" lay-search lay-filter="searchPage">
                    <option value="">搜索页面或功能</option>
                    <option value="1">layer</option>
                    <option value="2">form</option>
                </select>
                <i class="layui-icon">&#xe615;</i>
            </div>*@
        <div class="navBar layui-side-scroll" id="navBar">
            <ul class="layui-nav layui-nav-tree">
                <li class="layui-nav-item layui-this">
                    <a href="javascript:;" data-url="/Main/Home/Default"><i class="layui-icon" data-icon=""></i><cite>后台首页</cite></a>
                </li>
            </ul>
        </div>
    </div>
    <!-- 右侧内容 -->
    <div class="layui-body layui-form">
        <div class="layui-tab mag0" lay-filter="bodyTab" id="top_tabs_box">
            <ul class="layui-tab-title top_tab" id="top_tabs">
                <li class="layui-this" lay-id=""><i class="layui-icon">&#xe68e;</i> <cite>后台首页</cite></li>
            </ul>
            <ul class="layui-nav closeBox">
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon caozuo">&#xe643;</i> 页面操作</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" class="refresh refreshThis"><i class="fa fa-refresh"></i> 刷新当前</a></dd>
                        <dd><a href="javascript:;" class="closePageOther"><i class="fa fa-times-rectangle"></i> 关闭其他</a></dd>
                        <dd><a href="javascript:;" class="closePageAll"><i class="fa fa-times-circle"></i> 关闭全部</a></dd>
                    </dl>
                </li>
            </ul>
            <div class="layui-tab-content clildFrame">
                <div class="layui-tab-item layui-show">
                    <iframe src="/Main/Home/Default"></iframe>
                </div>
            </div>
        </div>
    </div>
    <!-- 底部 -->
    <div class="layui-footer footer">
        <p><span>copyright @@2018 管理系统</span>　　<a onclick="donation()" class="layui-btn layui-btn-danger layui-btn-sm">捐赠作者</a></p>
    </div>
</div>
<!-- 移动导航 -->
<div class="site-tree-mobile"><i class="layui-icon">&#xe602;</i></div>
<div class="site-mobile-shade"></div>
@section script{
    <script src="@Url.Content("~/js/index.js")"></script>
}


